titles = File.open("snake-names.txt").readlines.map{|t| t.strip}
puts " & " + titles.join(" & ") + " \\\\"
i = 0;
$stdin.each{|line| puts titles[i] + " & " + line.split.join(" & ") + " \\\\"; i = i + 1}
